<form id="foodForm" method="POST" action="food.php?act=edited" enctype="multipart/form-data">
<input type="hidden" id="id" name="id" value="<?php echo $food_edit['id']; ?>" />
<table width="100%">
<tr>
<td>食材名称</td>
<td><input type="text" name="sName" id="sName" value="<?php echo $food_edit['sName']; ?>" /></td>
</tr>
<tr>
<td>销售价格</td>
<td>
<input type="input" name="nPrice" id="nPrice" value="<?php echo $food_edit['nPrice']; ?>" />
</td>
</tr>
<tr>
<td>搭配规则</td>
<td>
<input type="input" name="nPrice" id="nPrice" value="<?php echo $food_edit['sMatch']; ?>" />
</td>
</tr>
<tr>
<td>搭配难度系数</td>
<td>
<input type="input" name="nPrice" id="nPrice" value="<?php echo $food_edit['nLevel']; ?>" />
</td>
</tr>
<tr>
<td>食材说明</td>
<td><textarea id="sDescript" name="sDescript" rows="5" cols="40"><?php echo $food_edit['sDescript']; ?></textarea></td>
</tr>
<tr>
<td>上下架</td>
<td>
<input type="radio" id="nOnShelf" name="nOnShelf" value="1" <?php if($food_edit['nOnShelf'] == 1):?>checked="checked"<?php endif;?> />上架
<input type="radio" id="nOnShelf" name="nOnShelf" value="0" <?php if($food_edit['nOnShelf'] == 0):?>checked="checked"<?php endif;?> />下架
</td>
</tr>
<tr>
<td>素材图片</td>
<td>
<img src="<?php echo FOOD_URL.$food_edit['sUrl']; ?>" border="0" width="100" height="100" /><br />
<input type="file" id="sUrl" name="sUrl" value="<?php echo $food_edit['sName']; ?>" /></td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" value="编辑道具" />
<input type="button" onclick="window.location.href='food.php?act=list'" value="返 回" size="15" />
</td>
</tr>
</table>
</form>